# spider_execute.py

from .hot_spider import hot_pull
from .main_body_pull import main_pull

def spider_execute():
    days = int(input("请输入你想要查询的天数（从今日起往前追溯）："))

    all_keywords_with_titles = hot_pull()  # 调用主函数获取关键词和对应的标题
    main_pull(all_keywords_with_titles, days)
if __name__ == '__main__':
    spider_execute()
